package concursos.configuracao;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Column;

@Entity
@Table(schema="th28841_testes")
public class Configuracao implements Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
    private long id;

	@Basic
	@Column(name="NOME")
	private String nome;

    @OneToMany(mappedBy="configuracao")
    private Set<ItemConfiguracao> itens;

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public Set<ItemConfiguracao> getItens() {
        return itens;
    }

    public void setItens(Set<ItemConfiguracao> itens) {
        this.itens = itens;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }
}
 
